package com.cskaoyan.mapper;

import com.cskaoyan.bean.Brand;
import com.cskaoyan.bean.BrandExample;
import com.cskaoyan.bean.ValueAndLabel;
import com.cskaoyan.weixin.bean.goods.BrandBean;
import com.cskaoyan.weixin.bean.home.BrandIndexVO;
import com.cskaoyan.weixin.bean.home.BrandListBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BrandMapper {
    long countByExample(BrandExample example);

    int deleteByExample(BrandExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Brand record);

    int insertSelective(Brand record);

    List<Brand> selectByExample(BrandExample example);

    Brand selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Brand record, @Param("example") BrandExample example);

    int updateByExample(@Param("record") Brand record, @Param("example") BrandExample example);

    int updateByPrimaryKeySelective(Brand record);

    int updateByPrimaryKey(Brand record);

    List<Brand> selectBrandList(@Param("id") String id, @Param("name") String name,
                                @Param("sort") String sort, @Param("order") String order);

    List<ValueAndLabel> selectBraList();
    List<BrandListBean> selectBrands();


    Brand selectBrand(@Param("id") Integer id);

    BrandBean selectByBrand(Integer id);

    List<BrandIndexVO> queryBrandVOList();

    List<BrandIndexVO> queryAllBrandList();

    Brand selectBrandDetail(@Param("brandId") Integer brandId);

}
